Characterisation of Non-Unique Base b-expansions

There are many proofs in which working with the expansions of real numbers in a given base feels like it would give the nicest argument, however the non-uniqueness of such expansions often leads to problems.

It seems though that this non-uniqueness is localised to a particular type of problem. In base 10, considering non-unique expansions seem to all be (loosely speaking) of the same form:

0.99900=1.000000.05999=0.060000.00199=0.00200

Indeed this is the case, and the following theorem describes this rigorously to classify non-unique expansions completely.

We isolate the problem here such that proofs like the uncountability of the real numbers can handle these issues.

Theorem

Let x,y[0,1), and let xn and yn be the corresponding digits of each number in their base b expansion (after the decimal point, starting index at 1). That is, xn,yn{0,,b1} for all n1.

If the base b expansions of x and y given above are distinct, then we have that x=y if and only if (up to reordering) there exists an N such that

  1. n<Nxn=yn
  2. n=Nxn=yn1
  3. n>Nxn=b1yn=0
Proof

Assume that x=y[0,1), and write x=k=1xkbk and y=k=1xkbk, the base b expansions of each x and y, which are distinct.

Let N be the least positive integer such that xNyN. Now consider that

0=yx=k=1ykbkk=1xkbk=k=1(ykxk)bk=k=N(ykxk)bk=(yNxN)bN+k=N+1(ykxk)bk(yNxN)bN+(b1)k=N+1bk=(yNxN)bN+(b1)1b(N+1)11b=(yNxN)bN+1bN

hence

0(yNxN)bN+1bN=(yNxN+1)b1

and therefore

yNxN+10yNxN1xNyN1.

The symmetrical argument above similarly shows that xNyN1 and hence we have that |xNyN|1. Since we assumed that xNyNxNyN0, we have that |xNyN|=1. As such, we assume without loss of generality that xN=yN1 (the other argument follows identically).

Returning to our calculation of the difference, we now have that

0=xy=(xNyN)bN+k=N+1(xkyk)bk=bN+k=N+1(xkyk)bkbN=k=N+1(xkyk)bk.

We know that the right hand side is upper bounded by bN and since this is the left hand side, equality happens when the right hand side achieves this upper bound. If any xkyk is not b1 then the sum can be at most bN((b1)(xkyk))bk. For example in base 10, if one digit is 8, in the kth place, then the sum is bounded by 10N810k. As such we have that xkyk=b1 for all k>N. Since xk and yk are in {0,,b1}, the only way this is possible is by maximising xk and minimising yk, that is xk=b1 and yk=0 for all k>N.

This proves the forward implication.

Reverse implication is relatively straightforward. That is, if we assume that

  1. n<Nxn=yn
  2. n=Nxn=yn1
  3. n>Nxn=b1yn=0

as above, then we have that

xy=k=1xkbkk=1ykbk=k=1(xkyk)bk=k=N(xkyk)bk=bN+k=N+1(b1)bk=bN+bN=0.